//
//  howcanAppDelegate.m
//  howcan
//
//  Created by apple on 4/14/12.
//  Copyright __MyCompanyName__ 2012. All rights reserved.
//

#import "howcanAppDelegate.h"
#import "RootViewController.h"


@implementation howcanAppDelegate

@synthesize window;
@synthesize navigationController;


#pragma mark -
#pragma mark Application lifecycle

- (void)applicationDidFinishLaunching:(UIApplication *)application {    
    
    // Override point for customization after app launch    
	
	[window addSubview:[navigationController view]];
    [window makeKeyAndVisible];
	[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"is_login"];
	
//	FileUpload * upl= [[ FileUpload alloc] initWithUrlWithImageData:urlPath
//																	   userName:userName
//																   commentTitle:title
//																	commentText:msg
//																	  commentId:pid
//																	  imageData:imgData
//																	   delegate:self
//																   doneSelector:@selector(onUploadDone:)
//																  errorSelector:@selector(onUploadError:)] ;
//	[upl release];
		
}

-(void) onUploadDone:(FileUpload *) args
{
//	CMLog(@"发部消息成功!");
	
}

-(void) onUploadError :(FileUpload *) args
{
//	CMLog(@"发表消息失败!");
}

- (void)applicationWillTerminate:(UIApplication *)application {
	// Save data if appropriate
}


#pragma mark -
#pragma mark Memory management

- (void)dealloc {
	[navigationController release];
	[window release];
	[super dealloc];
}

@end

